package controller;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

import dao.SearchTour;
import entity.Tour;

public class SearchTourAction extends ActionSupport{
	private ArrayList<Tour> list;
	private String name_search;
	@Override
	public String execute() throws Exception {
		list = SearchTour.searchTour(name_search);
		return SUCCESS;
	}
	public ArrayList<Tour> getList() {
		return list;
	}
	public void setList(ArrayList<Tour> list) {
		this.list = list;
	}
	public String getName_search() {
		return name_search;
	}
	public void setName_search(String name_search) {
		this.name_search = name_search;
	}	
}
